import base64
import binascii

data = "02 09 B1 30 06 00 00 73 AA "
data = data.replace(" ", "")
print(binascii.unhexlify(data))
# for i in data.split(" "):
#     print(int(i.replace("", ""), 16))
print(binascii.hexlify(b"\r"))
